package cn.gson.springboot.model.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONArray;

@Mapper
public interface ApplyHospitalMappers {

	//新增通知单
	public void AddApply(@Param("lookillness_id") Integer lookillness_id ,@Param("applyhosptital_user") String applyuser);
	
	//通知单查询（通知单表，看诊表，医疗卡表，用户表[门诊医生]，科室表）
	public JSONArray findapplyBystatus(@Param("applyid") Integer applyid);
	
	//修改通知单的通知状态
	public void updateApplyStatusByApplyid(@Param("applystatus") Integer applystatus,
			@Param("applyid") Integer applyid);
	
	//通知单查询，通知单记录（通知单表，看诊表,医疗卡表）
	public JSONArray findapplyrecordAll(@Param("clinicname") String clinicname,
			@Param("applyid") Integer applyid);
	
	//根据已同意的通知状态查询
	public JSONArray findalppyByidReg(@Param("applyid") Integer applyid);
	
	//打印小票
	public JSONArray selectapplyreceipt();
	
	
	
}
